package com.maywide.jdp.system.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import javax.servlet.http.HttpSession;

/**
 * 锁定解锁Service接口
 * 
 * @author luoyang
 * @version 1.0
 * @since JDK1.6
 */
public interface LockedService {
	/**
	 * 锁定对象
	 * 
	 * @param id
	 *            对象ID
	 * @param request
	 *            HttpServletRequest对象
	 */
	public void lock(String id, HttpServletRequest request,
			HttpServletResponse response, HttpSession session) throws Exception;

	/**
	 * 解锁对象
	 * 
	 * @param id
	 *            对象ID
	 * @param request
	 *            HttpServletRequest对象
	 */
	public void unlock(String id, HttpServletRequest request,
			HttpServletResponse response, HttpSession session)
			throws Exception;
}
